#include "systick.h"
void SysTick_Delay_Nms(uint16_t Nms)

{    

  SysTick->CTRL=0;

  SysTick->LOAD=(uint32_t)Nms*9000; 

  SysTick->CTRL=0x01;               
  while(!(SysTick->CTRL&(1<<16))); 

  SysTick->CTRL=0X00000000;         

  SysTick->VAL=0X00000000;             

}  


